/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pub.entity.PubDonate;
import com.thinkgem.jeesite.modules.pub.dao.PubDonateDao;

/**
 * 单表生成Service
 * @author zmy
 * @version 2019-04-18
 */
@Service
@Transactional(readOnly = true)
public class PubDonateService extends CrudService<PubDonateDao, PubDonate> {
	
	@Autowired
	private PubDonateDao pubDonateDao;

	public PubDonate get(String id) {
		return super.get(id);
	}
	
	public List<PubDonate> findList(PubDonate pubDonate) {
		return super.findList(pubDonate);
	}
	
	public Page<PubDonate> findPage(Page<PubDonate> page, PubDonate pubDonate) {
		return super.findPage(page, pubDonate);
	}
	
	@Transactional(readOnly = false)
	public void save(PubDonate pubDonate) {
		super.save(pubDonate);
	}
	
	@Transactional(readOnly = false)
	public void delete(PubDonate pubDonate) {
		super.delete(pubDonate);
	}

	@Transactional(readOnly = false)
	public int wxsave(String id, String username, String userid, String articleid, String amt, String articlename,
			String donatetime) {
		// TODO Auto-generated method stub
		return pubDonateDao.wxsave(id,username,userid,articleid,amt,articlename,donatetime);
	}

	public List<Object[]> wxlist(String userid) {
		// TODO Auto-generated method stub
		return pubDonateDao.wxlist(userid);
	}
	
}